package com.ganmingshan.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ganmingshan.admin.utils.ExcelExport;
import com.ganmingshan.admin.utils.ExcelImport;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class ToSignEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @ExcelImport("name")
    private String name;
    @ExcelImport("department")
    private String department;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelImport("checkin")
    private LocalDateTime checkin;
    /**
     * 显示状态[0-没迟到；1-迟到]
     */
    @ExcelImport(value = "status",kv = "1-迟到;0-未迟到",required = true)
    @ExcelExport(value = "status",kv = "1-迟到;0-未迟到")
    private Integer status;
}
